package ru.usu.gv.gui.actions;

import ru.usu.gv.styles.StyleFacade;

/**
 * @author spupyrev
 * 29.10.2008
 */
public class ChangeGraphDirectionAction extends ActionBase
{
    private boolean isDirected;

    public ChangeGraphDirectionAction(boolean isDirected)
    {
        this.isDirected = isDirected;
    }

    @Override
    public void execute()
    {
        if (StyleFacade.isDirectedGraph() == isDirected)
            return;

        StyleFacade.setDirectedGraph(isDirected);
        System.err.println("Method is not implemented yet!!!");
        //throw new RuntimeException("Not imlpemented yet");
    }

}
